package com.linkage.event.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 这是MyBatis Generator自动生成的Model Class.
 * 对应的数据表是 : EVENT_TYPE
 * @author ReyesYi
 * @date 2020-07-28 10:53:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EventType implements Serializable {
    /**
     * 事件类型代码
     */
    private String eventTypeCode;

    /**
     * 事件上级类型代码
     */
    private String superiorTypeCode;

    /**
     * 事件类型名称
     */
    private String eventTypeName;

    /**
     * 类型启动状态 0未启动 1启动
     */
    private String enableStatus;

    /**
     * 创建人ID
     */
    private String createUserId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 0为培训，1为事件
     */
    private String type;

    private String isDefault;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", eventTypeCode=").append(eventTypeCode);
        sb.append(", superiorTypeCode=").append(superiorTypeCode);
        sb.append(", eventTypeName=").append(eventTypeName);
        sb.append(", enableStatus=").append(enableStatus);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}